package com.fowo.api.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.sys.entity.SysMessage;
import com.fowo.api.sys.model.SysMessageItemVo;
import com.fowo.api.sys.model.SysMessageSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysMessageMapper extends BaseMapper<SysMessage> {
    Page<SysMessageItemVo> searchPage(@Param("page") Page page, @Param("search") SysMessageSearch search);

    int deleteRead(@Param("userId") Long userId);
}
